﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Text;
using Axis.Dao.Research;
using Axis.BusinessObject.Research;
using Axis.Web.Administrator.Global;

namespace Axis.Web.Administrator.Views.Accounts
{
    public partial class MemberGift : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string ID = "0";
            if (Request.QueryString["ID"] != null)
                ID = Request.QueryString["ID"];
            Page.ClientScript.RegisterClientScriptBlock(Page.GetType(), "GiftMember",
                               string.Format("\n var MemberID={0};\n", ID), true);
            StringBuilder resultProject = new StringBuilder();
            CResearchDao CResearch = new CResearchDao();
            IList<CProject> listProject = CResearch.GetProject(string.Format("<InputValue UserID='{0}' SecrectToken='{1}'/>", CSecurity.USER_ID, CSecurity.SECRECT_TOKEN));
            ddlProjectList.DataSource = listProject;
            ddlProjectList.DataTextField = "Name";
            ddlProjectList.DataValueField = "ID";

            ddlProjectList.Items.Insert(0, new ListItem("(...)", ""));
            ddlProjectList.DataBind();

        }
    }
}